Fix testing the non-root package
authorAlex Crichton <alex@alexcrichton.com>
Thu, 11 Jun 2015 07:24:05 +0000 (00:24 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 11 Jun 2015 07:24:05 +0000 (00:24 -0700)
commitb3e2ac03d2fca92704cba51bb638a348b607f060
treeb51c08f02552d6376da27befd9f363d15b802701
parent2ac8a86e9e5000a30e444c51b6a842175a5bb874
Fix testing the non-root package

The previous overhaul of how dependencies among build dependencies were
traversed ended up picking the wrong root package when the `-p` argument was
specified to commands. This commit fixes this up by making sure the right root
package is passed along.
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_compile_custom_build.rs